Package particleengine
Class Utils
java.lang.Object
particleengine.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fs.starfarer.api.graphics.SpriteAPIgetLoadedSprite(String loc) Retrieves a sprite from the given file path, loading it into a texture if it doesn't already have a texture assigned.static com.fs.starfarer.campaign.BaseLocation
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getPlayerContainingLocation
public static com.fs.starfarer.campaign.BaseLocation getPlayerContainingLocation() -
getLoadedSprite
Retrieves a sprite from the given file path, loading it into a texture if it doesn't already have a texture assigned.
Note: Sprites loaded in this manner are not loaded permanently; they are unloaded periodically in the campaign layer and at the start of each combat.- Parameters:
loc- File path relative to the starsector-core directory- Returns:
SpriteAPIobject corresponding to the given file
-